
<%@page import="DTO.Administrador"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
        <%
       //Obtiener la sesion
       HttpSession sesion = request.getSession();
       Administrador admin = (Administrador) session.getAttribute("Administrador");
       //Valida el usuario 
       if(admin != null){ %>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="author" content="SAPCOMED" />
        <link rel="Stylesheet" type="text/css" href="css/default.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" media="screen" />
        <script type="text/javascript" src="js/fecha.js"></script>
        <link rel="shortcut icon" href="../img/sign.ico"  type="image/x-icon"/>
        
        <script type="text/javascript" src="js/js_common.js"></script>   
        
        <title>Menu Principal</title>
        <script language="JavaScript">
            //Nueva pagina  
            function newPage(url)
            {
                window.open(url,"","algun parametro que desees");
            }
          
            //Otra image
            image0 = new Image();
            image0.src = "imagen/img01.png";

            image1 = new Image();
            image1.src = "imagen/img02.png";
          
            image2 = new Image();
            image2.src = "imagen/img03.png";
          
            function resaltarImagen(){
                var imgId = document.getElementsByTagName("img01");
                imgId.className ="resaltaImagen";
            }
        </script>
    </head>
    <body bgcolor="#FFFFCC">
        <div id="wrap">
            <div id="top">
                <h2>Menú Principal </h2> 
                <div style="margin-left: 40%;margin-bottom: 3.6%;"> <h1>Usuario: <%= admin.getNombre() %></h1> </div>
                <a href="javascript:cerrar_sesion()">Cerrar sesión</a>
            </div>
            <div style="color: #ffffff; margin-left:2%; font-size: 1.6em;">
                <script type="text/javascript" language="JavaScript">
                    document.write(Muestrafecha());
                </script>
            </div>
  <div style =" margin-top: 15%; "> 
    <font SIZE=4>
    <table style="margin-left: 18%; color:black;">
              <tr>
                  <td>
                      <table>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp
                                  <a>Registrar paciente</a> <br>
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                                  <a href="RegistroFichaPaciente.jsp">Ficha clinica</a>
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp; 
                                  <a href="BuscarDatosPaciente.jsp">Ver datos paciente</a>
                                <!--  <a href="SubirFoto.jsp">Cargar foto paciente</a>-->
                              </td>
                          <tr>
                          <tr>
                              <td>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                              <!--  <a href="SubirFoto.jsp">Cargar foto paciente</a>-->
                              </td>
                          </tr>
                      </table>
                  </td>
                  <td>
                      <table>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp
                                  <a>Buscar paciente</a><br>
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                                  <a href="BuscarDatosPaciente.jsp">Busqueda</a>
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp; 
                                  <a href="BuscarDatosPaciente.jsp"> "  --> "</a>
                                <!--  <a href="SubirFoto.jsp">Cargar foto paciente</a>-->
                              </td>
                          <tr>
                          <tr>
                              <td>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;
                              <!--  <a href="SubirFoto.jsp">Cargar foto paciente</a>-->
                              </td>
                          </tr>
                      </table>
                  </td>		
              </tr>
      </table>
    </font>
</div>
  <div style=" margin-top: 20%;"></div>   
 </div>  
        <div id="footer">
            <footer>
                <div><img src="img/footer_img.png" height="39" width="960" border="0"></div>
                <h4>
                    <a href="Desarrolladores.jsp" accesskey="H" onClick="popup = window.open('Desarrolladores.jsp', 'PopupPage','height=550,width=600,scrollbars=yes,resizable=no'); return false" target="_blank" onMouseOver="window.status='';  return true" onMouseOut="window.status=''; return true"onFocus="window.status='';  return true" onBlur="window.status=''; return true"  class="submenulinktext2">DESAROLLADORES</a> | 
                    <a href="Ayuda.jsp" accesskey="H" onClick="popup = window.open('Ayuda.jsp', 'PopupPage','height=550,width=600,scrollbars=yes,resizable=no'); return false" target="_blank" onMouseOver="window.status='';  return true" onMouseOut="window.status=''; return true"onFocus="window.status='';  return true" onBlur="window.status=''; return true"  class="submenulinktext2">AYUDA</a>
                </h4>
                <div class="ftext"> Tel:(506) 2246-3279 <br/> sapcomed &copy;  Todos los derechos reservados. Prohibida la reproducción total o parcial.</div>
            </footer>
        </div>
    </body>
        <% } %>
</html>


